﻿
namespace Inovout.Security
{
    public partial class Privilege
    {
        public override string ToString()
        {
            string operation = Operation.ToString();
            if (string.IsNullOrEmpty(operation))
            {
                return Resource.ToString();
            }
            else
            {
                return Resource.ToString() + "." + operation;
            }
        }
    }
}
